#FROM hub.cdqidi.cn/jre:11-alpine
#FROM registry.cn-hangzhou.aliyuncs.com/sjk009/jre:11-alpine
FROM registry.cn-hangzhou.aliyuncs.com/sjk009/jre:21-alpine
#更新镜像作者信息
#LABEL MAINTAINER="flash520@163.com"

# 更新镜像作者信息
COPY ./target/gy-hik-push-1.0.0-SNAPSHOT.jar /data/gy-hik-push/
WORKDIR /data/gy-hik-push/logs
WORKDIR /data/gy-hik-push
EXPOSE 8085
# 增加字体
#RUN apk --update add curl bash ttf-dejavu && \
#      rm -rf /var/cache/apk/*
ENTRYPOINT ["java", "-XX:MetaspaceSize=256M","-XX:MaxMetaspaceSize=256M","-XX:+AlwaysPreTouch","-XX:ReservedCodeCacheSize=128m","-XX:InitialCodeCacheSize=128m","-Xss512k","-Xms2g","-Xmx2g","-XX:+UseZGC","-Duser.timezone=Asia/Shanghai","-jar","gy-hik-push-1.0.0-SNAPSHOT.jar"]